<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>登录日志</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui-v2.5.4/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table class="layui-hide" id="logLogin" lay-filter="logLogin"></table>
    </div>
</div>
</body>
<script src="/lib/layui-v2.5.4/layui.js" charset="utf-8"></script>
<script th:inline="javascript">
    /*<![CDATA[*/
    layui.use(['table'], function () {
        var table = layui.table;
        // 表格
        table.render({
            elem: '#logLogin',
            url: '/api/admin/setting/logLogin/list',
            page: true,
            cols: [
                [
                    {field: 'code', title: '帐号', align: 'center'},
                    {field: 'name', title: '用户名', align: 'center'},
                    {field: 'ip', title: 'IP', align: 'center'},
                    {field: 'categoryName', title: 'IP', align: 'center'},
                    {
                        field: 'createTime',
                        title: '登录时间',
                        align: 'center',
                        templet: '<div>{{layui.util.toDateString(d.createTime, "yyyy-MM-dd HH:mm:ss")}}</div>'
                    }
                ]
            ]
        });
    });
    /*]]>*/
</script>
</html>